package com.hongyue.dey02;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class Demo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("D:\\jiuye\\dey11\\src\\com\\hongyue\\dey01\\aaa.txt");
        FileOutputStream fos = new FileOutputStream("C:\\Users\\86182\\Desktop\\aaa.txt");
        //复制文件
        for (int a; (a = fis.read()) != -1; ) {
            fos.write(a);
        }
        fis.close();
        fos.close();
    }
}
